]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y: adding a proper state for menu items with a dot
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 31 Jul 2012 15:53:37 +0000 (17:53 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 21 Aug 2012 16:17:21 +0000 (18:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=682366

js/ui/popupMenu.js

index 3c49c5dc32f4973571313d7935a1f90bb244d869..dcc23d7f2c1f16cb4b2eb292681aca9cd2e31625 100644 (file)
@@ -179,12 +179,14 @@ const PopupBaseMenuItem = new Lang.Class({
             this._dot = new St.DrawingArea({ style_class: 'popup-menu-item-dot' });
             this._dot.connect('repaint', Lang.bind(this, this._onRepaintDot));
             this.actor.add_actor(this._dot);
+            this.actor.add_accessible_state (Atk.StateType.CHECKED);
         } else {
             if (!this._dot)
                 return;
 
             this._dot.destroy();
             this._dot = null;
+            this.actor.remove_accessible_state (Atk.StateType.CHECKED);
         }
     },